﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newsadd.aspx.cs" Inherits="UI.system.page.news.newsadd" %>

<%@ Import Namespace="Model" %>
<%@ Import Namespace="Common" %>
<div style="margin: 15px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label"><font>新闻标题</font><em>*</em></label>
			<div class="layui-input-block">
                <input type="text" name="title" placeholder="请输入新闻标题" lay-verify="required" autocomplete="off" class="layui-input" value="<%=info.Title %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label">封面图片</label>
			<div class="layui-input-inline">
				<div id="upload_products" class='upload_product <%=string.IsNullOrEmpty(info.CoverImg)?"":"hidden" %>'><div id="upload_img"></div></div>
                 <div id="upload_show" class='upload_show <%=string.IsNullOrEmpty(info.CoverImg)?"hidden":"" %>'>
                     <div id="img_container" class="img_container" src="<%=info.CoverImg %>"><img src="<%=info.CoverImg %>"/></div>
                     <div class="reupload"><a href="javascript:Re_Upload()">重传</a></div>
                 </div> <div style="float:left; color:red; padding-top:5px; font-size:12px; padding-left:10px;"></div>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>浏览次数</font><em>*</em></label>
			<div class="layui-input-block">
				<input type="text" name="pageviews" placeholder="请输入点击量" lay-verify="required" autocomplete="off" class="layui-input" value='<%=info.Pageviews %>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>点赞次数</font><em>*</em></label>
			<div class="layui-input-block">
				<input type="text" name="praise" placeholder="请输入点赞次数" lay-verify="required" autocomplete="off" class="layui-input" value='<%=info.Praise %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>联系人</font></label>
			<div class="layui-input-block">
				<input type="text" name="contact" placeholder="请输入联系人"  autocomplete="off" class="layui-input" value='<%=info.Contact %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>联系人电话</font></label>
			<div class="layui-input-block">
				<input type="text" name="phone" placeholder="请输入联系人电话"  autocomplete="off" class="layui-input" value='<%=info.Phone %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>单位地址</font></label>
			<div class="layui-input-block">
				<input type="text" name="company" placeholder="请输入单位地址"  autocomplete="off" class="layui-input" value='<%=info.Company %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>省</font></label>
			<div class="layui-input-block">
				<input type="text" name="province" placeholder="请输入所在省（选填）"  autocomplete="off" class="layui-input" value='<%=info.Province %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>市</font></label>
			<div class="layui-input-block">
				<input type="text" name="city" placeholder="请输入所在市（选填）"  autocomplete="off" class="layui-input" value='<%=info.City %>'>
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>区</font></label>
			<div class="layui-input-block">
				<input type="text" name="area" placeholder="请输入所在区（选填）"  autocomplete="off" class="layui-input" value='<%=info.Area %>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>新闻内容</font><em>*</em></label>
			<div class="layui-input-block">
                <script id="context" type="text/plain" style="width:100%;height:250px;"><%=info.FContent %></script>
			</div>
		</div>
		<a lay-filter="save" lay-submit style="display: none;"></a>
	</form>
</div>